var Router = require('koa-router');
var router = new Router();
router.get('/pending', (ctx) => {
    ctx.body = {
        "total":2,
        "list": [{
            'id': '458212',
            'name': 'ming',
            'age': 20,
            'gender': '男',
            'card': '13456789101112',
            'operateDoctor': 'pro doctor',
            'operateSurgery': 'shoushu',
            'expectTime': '2018-03-12',
            'telephone': '17589896547',
            'anesthesia': '全麻',
            'anesthesiaDoctor': '全麻大仙'
            },{
            'id': '98745',
            'name': 'ming',
            'age': 20,
            'gender': '男',
            'card': '13456789101112',
            'operateDoctor': 'pro doctor',
            'operateSurgery': 'shoushu',
            'expectTime': '2018-03-12',
            'telephone': '17589896547',
            'anesthesia': '局部麻',
            'anesthesiaDoctor': '局部麻'
            }]
      }
})
router.get('/done', (ctx) => {
    ctx.body = {
        "total":2,
        "list": [{
            'id': '458212',
            'name': 'ming',
            'age': 20,
            'gender': '男',
            'card': '13456789101112',
            'operateDoctor': 'pro doctor',
            'operateSurgery': 'shoushu',
            'expectTime': '2018-03-12',
            'telephone': '17589896547',
            'anesthesia': '局部麻',
            'anesthesiaDoctor': '局部麻大仙',
            'status': 1
            },{
            'id': '98745',
            'name': 'ming',
            'age': 20,
            'gender': '男',
            'card': '13456789101112',
            'operateDoctor': 'pro doctor',
            'operateSurgery': 'shoushu',
            'expectTime': '2018-03-12',
            'telephone': '17589896547',
            'anesthesia': '全麻',
            'anesthesiaDoctor': '全麻大仙',
            'status': 0
            }]
      }
})


module.exports = router.routes();